Skip to content

Use records instead of structs in performance sensitive places#64

Merged
rkallos merged 1 commit intorkallos:mainfrom
hauleth:push-rwtrlzrpzxpq
Feb 24, 2026
Merged

Use records instead of structs in performance sensitive places#64
rkallos merged 1 commit intorkallos:mainfrom
hauleth:push-rwtrlzrpzxpq

Conversation

@hauleth
Copy link
Copy Markdown
Contributor

@hauleth hauleth commented Feb 22, 2026

Records are slightly faster and are less memory-intensive than maps at the cost of being less flexible. As the structures used for these structs do not change much, it is reasonable to switch to more performant option.

Records are slightly faster and are less memory-intensive than maps at
the cost of being less flexible. As the structures used for these
structs do not change much, it is reasonable to switch to more
performant option.
@rkallos rkallos merged commit 061bd29 into rkallos:main Feb 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants